import java.util.ArrayList;
import java.util.Scanner ;
public class Start {
    public void menu(ArrayList customers,ArrayList products){
        Scanner reader = new Scanner(System.in);
        System.out.println("*************欢迎进入超市*************") ;
        System.out.println("请选择您的身份（输入序号）：1.管理员 2.顾客");
        switch (reader.nextInt() ){
            case 1:
                Manager manager=new Manager();
                manager.login(customers,products) ;
                break;
            case 2:
                Customer customer =new Customer(3,null,null,null,0,0,null,null) ;
                customer.register(customers, products) ;
                break;
        }
    }

    public ArrayList initialCus(){
        ArrayList <Customer> customers =new ArrayList<>() ;
        customers.add(new Customer(1,"张三","银牌客户","2024-3-10",1145,130007082,"zhansan@1145.com","Zs114514/")) ;
        customers.add(new Customer(2,"李四","金牌客户","2023-5-5",50000,174185193,"lisi@qq.com","Lsi@123321@"));

        return customers;
    }

    public ArrayList initialPro(){
        ArrayList <Product> products = new ArrayList<>();
        products.add(new Product("牛奶",1,"光明","2024-7-1","饮品",5,10,100) ) ;
        products.add(new Product("面包",2,"嘉华","2024-7-20","食物",2,5,100) ) ;
        products.add(new Product("洗发水",3,"海飞丝","2024-5-1","洗漱用品",10,30,150) ) ;
        products.add(new Product("衬衫",4,"优衣库","2024-4-15","服饰",50,100,50) ) ;

        return products;
    }
}
